package demo;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.charset.StandardCharsets;

public class HelloWord {
    public static void main(String[] args) {
        try {
            FileOutputStream fos = new FileOutputStream("for.txt");{
                String str = "大家好~~";
                fos.write(str.getBytes(StandardCharsets.UTF_8));
                System.out.println("写出完毕");
                System.out.println("在分支上进行了修改操作~");
                System.out.println("在分支上进行了修改操作asdasd~");
                System.out.println("在分支上进行了修改操作asdasd~");
                System.out.println("在");
                System.out.println("进行了修改操作asdasd~");
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
